import request from '@/request/index.js';

export function getServiceProductByCode(params) {
	return request.get({
		url: '/app-api/collaboration/service-product/get-by-code',
		params,
		custom: {
			title: "获取服务包参数根据编码",
			authentication: true
		}
	});
}

export function getServiceProduct(params) {
	return request.get({
		url: '/app-api/collaboration/service-product/get',
		params,
		custom: {
			title: "获取服务包",
			authentication: true
		}
	});
}

export function getServiceOrderPage(params) {
	return request.get({
		url: '/app-api/collaboration/service-order/page',
		params,
		custom: {
			title: "获取服务包订单分页",
			authentication: true
		}
	});
}

export function payServiceProduct(data) {
	return request.post({
		url: '/app-api/collaboration/service-order/pay',
		data,
		custom: {
			title: "支付服务包",
			authentication: true
		}
	});
}